package uy.edu.um.ltic.server.business;

import java.sql.Timestamp;
import java.util.ArrayList;
import uy.edu.um.ltic.commons.MessageVO;

public class ConferenceMessage extends Message{

	private String text;
	private int idConference;
	
	public ConferenceMessage(Timestamp d, ArrayList<Employee> r, Employee s, String t,int iC){
		super(d, r, s);
		text = t;
		setIdConference(iC);
	}

	public ConferenceMessage(Timestamp d, Employee s, String t,int iC){
		super(d, s);
		text = t;
		setIdConference(iC);
	}
	
	public MessageVO convertToMessageVO(){
		return new MessageVO(this.getDate(),null, this.getSender().convertToEmployeeVO(), this.text,null,null,2,idConference);
	}
	
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getIdConference() {
		return idConference;
	}

	public void setIdConference(int idConference) {
		this.idConference = idConference;
	}
	
}
